<extend name="_layout/main" />
<block name="content">
	<div class="page-content">
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="{:U('dashboard/index')}">系统首页</a>
				</li>
				<li>
					<a href="{:U('manager/index')}">管理中心</a>
				</li>
				<li class="active">用户组</li>
			</ul>
		</div>
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="widget">
						<div class="widget-header bordered-bottom bordered-blue">
							<span class="widget-caption">用户组</span>
						</div>
						<div class="widget-body">
							<div>
								<div class="text-align-right margin-bottom-10">
                            		<a href="{:U('manager/group_add')}" class="btn btn-danger" ><i class="fa fa-plus"></i>添加用户组</a>                            		
                            	</div>
								<table class="table table-bordered table-hover">
									<thead>
										<tr>
											<th class="text-center">名称</th>
											<th class="text-center">超级管理员</th>
											<th class="text-center">用户数</th>
											<th width="200"  class="text-center">操作</th>
										</tr>
									</thead>
									<tbody>
										<volist name="result" id="val">
											<tr>
												<td class="text-center">{$val.name}</td>
												<td class="text-center"><eq name="val.supper" value="1"><span class="success"><i class="glyphicon glyphicon-ok"></i></span><else/><span class="danger"><i class="glyphicon glyphicon-remove"></i></span></eq></td>
												<td class="text-center">{$val.total}</td>
												<td class="text-center">
													<neq name="val.id" value="1">
														<a href="{:U('manager/group_edit',['id'=>$val['id']])}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i>编辑</a>
														<a href="{:U('manager/group_delete',['id'=>$val['id']])}" data-confirm="确定删除该用户组？" class="btn btn-default btn-xs"><i class="fa fa-trash-o"></i>删除</a>
													</neq>
												</td>
											</tr>
										</volist>
									</tbody>
								</table>
								<div class="row DTTTFooter">
								    <div class="col-sm-6">
								        <div class="dataTables_info" id="simpledatatable_info" role="status" aria-live="polite">
								
								        </div>
								    </div>
								    <div class="col-sm-6">
								        <div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
								            {$page}
								        </div>
								    </div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>

<block name="footer">

</block>